package com.example.controller;

import com.example.service.HelloServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: feign控制层
 * @author: ChenZhiXiang
 * @create: 2019-06-03 13:25
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloServce helloServce;

    @GetMapping("/feign")
    public String feign(){
        return helloServce.feign();
    }
}
